//
//  WQUserDataManager.m
//  D2OpenUDID
//
//  Created by 高文富 on 15/11/17.
//
//

#import "WQUserDataManager.h"
#import "WQKeyChain.h"
@implementation WQUserDataManager
//static NSString * const KEY_IN_KEYCHAIN = @"com.wuqian.app.allinfo";
//static NSString * const KEY_PASSWORD = @"com.wuqian.app.password";

+(void)setObject:(id)value forKey:(NSString *)key
{
    NSMutableDictionary *usernamepasswordKVPairs = [NSMutableDictionary dictionary];
    [usernamepasswordKVPairs setObject:value forKey:key];
    [WQKeyChain save:key data:usernamepasswordKVPairs];
}

+(id)objectForKey:(NSString *)key
{
    NSMutableDictionary *usernamepasswordKVPair = (NSMutableDictionary *)[WQKeyChain load:key];
    return [usernamepasswordKVPair objectForKey:key];
  
}

+(void)removeObjectForKey:(NSString *)value
{
    [WQKeyChain delete:value];
}
@end
